<?php
$avatar = $user['Image'];
$user = $user['User'];
?>
<h2> Settings </h2>
<h3> Mes données </h3>
<table>
    <caption>
        Informations
    </caption>
    <tbody>
        <tr>
            <td>
                Nom
            </td>
            <td>
                <?php echo $user['name'];?>
            </td>
        </tr>
        <tr>
            <td>
                Prénom 
            </td>
            <td>
                <?php echo $user['surname'];?>
            </td>
        </tr>
        <tr>
            <td>
                Email
            </td>
            <td>
                <?php echo $user['email'];?>
            </td>
        </tr>
        <tr>
            <td>
                Mot de passe
            </td>
            <td>
                <?php echo $this->Html->link('Changer le mot de passe', array('action' => 'changePassword'));?>
      
            </td>
        </tr>
        <tr>
            <td>
                Avatar
            </td>
            <td>
                <?php echo $this->Display->avatar($avatar, $user);?>
      
            </td>
        </tr>
        
    </tbody>
</table>

<h3>Modifier mon Avatar</h3>
<?php


echo $this->Form->create('User', array('type' => 'file'));
echo $this->Form->file('File');
echo $this->Form->submit('Upload');
echo $this->Form->end();
                    
?>
<?php
                
        
        /*
echo $this->Form->create('User');
echo $this->Form->input('name', array(    
));
echo $this->Form->input('surname', array(    
));
echo $this->Form->input('email', array(    
));
echo $this->Form->input('password');
echo $this->Form->end('Envoyer');
      */  


?>

